Skip to content

fix: remove auto instrument removal for stfc - #1212

Merged
TCMeldrum merged 3 commits into
developfrom
1453-remove-auto-stfc-instr-removel
Oct 28, 2025
Merged

fix: remove auto instrument removal for stfc#1212
TCMeldrum merged 3 commits into
developfrom
1453-remove-auto-stfc-instr-removel

Conversation

@TCMeldrum

@TCMeldrum TCMeldrum commented Oct 3, 2025

Copy link
Copy Markdown
Contributor

Closes UserOfficeProject/issue-tracker#1453

Description

This PR removes the automatic removal of instruments for STFC users.

Motivation and Context

The automatic removal of instruments for STFC is no longer needed, anyone who leaves will have there access to the instrument scientist role removed anyway. We are also looking into felxible roles and the auto assigments should be made obsolete as well.

Changes

  • Removed the getInstrumentsToRemove and autoAssignRemoveInstruments functions from StfcUserAuthorization.
  • Renamed autoAssignRemoveInstruments to autoAssignInstruments and updated its usage across the codebase.
  • Updated tests to reflect these changes. Previous test cases that were checking for automatic removal of instruments have been removed, and the existing ones have been updated to check for the correct assignment of instruments without their removal.

How Has This Been Tested?

Fixes Jira Issue

https://jira.esss.lu.se/browse/

Depends On

Tests included/Docs Updated?

  • I have added tests to cover my changes.
  • All relevant doc has been updated

@TCMeldrum
TCMeldrum marked this pull request as ready for review October 6, 2025 13:29
@TCMeldrum
TCMeldrum requested a review from a team as a code owner October 6, 2025 13:29
@TCMeldrum
TCMeldrum requested review from a team, RasmiaKulan and mutambaraf and removed request for a team and RasmiaKulan October 6, 2025 13:29
@TCMeldrum
TCMeldrum merged commit 8e2842a into develop Oct 28, 2025
22 checks passed
@TCMeldrum
TCMeldrum deleted the 1453-remove-auto-stfc-instr-removel branch October 28, 2025 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor Automatic STFC instrument assignmeant

3 participants